package com.arpgalaxy.generator.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author arpgalaxy
 * @date 2021/4/6
 * @email 13605560342@163.com
 * @description
 */
@PropertySource("classpath:config.properties")
//@ConfigurationProperties(prefix = "type")
@Component
public class TypeConverter {
    @Value("#{${TypeConverterMap}}")
    private Map<String,String> typeMap;

    public Map<String, String> getTypeMap() {
        return typeMap;
    }

    public void setTypeMap(Map<String, String> typeMap) {
        this.typeMap = typeMap;
    }
}
